/**
 * 
 */
package com.study.jieba;

import com.huaban.analysis.jieba.JiebaSegmenter;
import com.huaban.analysis.jieba.JiebaSegmenter.SegMode;

/**
 * @author Administrator
 * @date 2019年7月14日
 */
public class Demo {

	public static void main(String[] args) {
		JiebaSegmenter jiebaSegmenter = new JiebaSegmenter();
		String[] sentences = new String[] { "这是一个伸手不见五指的黑夜。我叫孙悟空，我爱北京，我爱Python和C++。", "我不喜欢日本和服。", "雷猴回归人间。",
				"工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作", "结果婚的和尚未结过婚的" };
		for (String sentence : sentences) {
			// System.out.println(jiebaSegmenter.process(sentence,
			// SegMode.INDEX).toString());
			System.out.println(jiebaSegmenter.sentenceProcess(sentence));
		}
	}
}
